package com.ruoyi.cc.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cc.mapper.reviewedMapper;
import com.ruoyi.cc.domain.reviewed;
import com.ruoyi.cc.service.IreviewedService;

/**
 * 已审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-13
 */
@Service
public class reviewedServiceImpl implements IreviewedService 
{
    @Autowired
    private reviewedMapper reviewedMapper;

    /**
     * 查询已审核
     * 
     * @param id 已审核主键
     * @return 已审核
     */
    @Override
    public reviewed selectreviewedById(String id)
    {
        return reviewedMapper.selectreviewedById(id);
    }

    /**
     * 查询已审核列表
     * 
     * @param reviewed 已审核
     * @return 已审核
     */
    @Override
    public List<reviewed> selectreviewedList(reviewed reviewed)
    {
        return reviewedMapper.selectreviewedList(reviewed);
    }

    /**
     * 新增已审核
     * 
     * @param reviewed 已审核
     * @return 结果
     */
    @Override
    public int insertreviewed(reviewed reviewed)
    {
        reviewed.setCreateTime(DateUtils.getNowDate());
        return reviewedMapper.insertreviewed(reviewed);
    }

    /**
     * 修改已审核
     * 
     * @param reviewed 已审核
     * @return 结果
     */
    @Override
    public int updatereviewed(reviewed reviewed)
    {
        reviewed.setUpdateTime(DateUtils.getNowDate());
        return reviewedMapper.updatereviewed(reviewed);
    }

    /**
     * 批量删除已审核
     * 
     * @param ids 需要删除的已审核主键
     * @return 结果
     */
    @Override
    public int deletereviewedByIds(String[] ids)
    {
        return reviewedMapper.deletereviewedByIds(ids);
    }

    /**
     * 删除已审核信息
     * 
     * @param id 已审核主键
     * @return 结果
     */
    @Override
    public int deletereviewedById(String id)
    {
        return reviewedMapper.deletereviewedById(id);
    }
}
